package com.monolith.jd.demo.common.util;

import java.util.List;
/**
 * 2018/10/1 Create by 郭文梁 
 * CollectionUtil
 * Recommend of this class
 * 
 * @date 2018/10/1
 * @author 郭文梁
 */
public class CollectionUtil {
    public static <T> T[] toArray(List<T> collection, T[] arr) {
        for (int i = 0; i < collection.size(); i++) {
            arr[i] = collection.get(i);
        }
        return arr;
    }
}
